
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif

#include <sys/cdefs.h>

#ifdef _LIBC
#include "namespace.h"
#endif

#if defined(_KERNEL)
#include <sys/param.h>
#include <lib/libkern/libkern.h>
#elif defined(_STANDALONE)
#include <sys/param.h>
#include <lib/libkern/libkern.h>
#include <lib/libsa/stand.h>
#else
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
#endif

#define	_FUNCNAME	strtoumax
#define	__UINT		uintmax_t
#define	__UINT_MAX	UINTMAX_MAX

#include "_strtoul.h"

#ifdef _LIBC
__weak_alias(strtoumax, _strtoumax)
__weak_alias(strtoumax_l, _strtoumax_l)
#endif
